home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 543 b | 34 lines | [TEXT/ttxt] |
- in module Autofinder
-
- class NotesEdit (TextEdit)
- instance variables
- hasFocus
- end
-
- method init self {class NotesEdit} #rest args ->
- (
- apply nextMethod self args
- self.hasFocus := undefined
- )
-
- method processFocus self {class NotesEdit} int ev ->
- (
- nextMethod self int ev
-
- if ev.focusType = @loseFocus then
- self.hasFocus := undefined
- else
- self.hasFocus := true
-
- )
-
- method processMouseDown self {class NotesEdit} int ev ->
- (
- print "Mouse Down!"
- nextMethod self int ev
- print self.hasfocus
- if self.hasFocus do false
- )
-
- "Compiled Notes"
-